<div ng-controller="registCtrl" id="registPanel">
    <h2>现在就加入重邮树洞网。</h2>
    <form class="validate-form" id="registForm">
        <input type="email" input-valid email required id="email" ng-model="form.email" class="form-control" placeholder="邮箱，输入您的常用邮箱" />
        <input type="text" input-valid username required name="name" id="name" ng-model="form.name" class="form-control" placeholder="用户名，2到8个字符，可以是下划线、字母、数字和汉字" />
        <input type="password" input-valid pwd required name="pwd" id="pwd" ng-model="form.pwd" class="form-control" placeholder="密码，6到16个字符，可以是下划线、字母和数字" />
        <input type="password" input-valid pwd1 required id="pwd1" name="pwd1" ng-model="form.pwd1" class="form-control" placeholder="密码确认，请再次确认密码" />
        <button type="submit" class="btn btn-default" ng-click="form.submit()" ng-disabled="registForm.$invalid">
            注册
        </button>
    </form>
</div> 